/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ronsicecream.pos.master.unittype;

import com.buanalintas.bynga.Field;
import com.buanalintas.bynga.Page;
import com.ronsicecream.pos.entities.PosMasterUnit;
import com.ronsicecream.pos.entities.PosMasterUnitType;

/**
 *
 * @author user
 */
public class UnitType extends Page{
    private Field unitTypeId;
    private Field unitTypeName;

    public UnitType() {
        super();

        setTheClass(PosMasterUnitType.class);




        unitTypeId = new Field();
        unitTypeId.setName("unitTypeId");
        unitTypeId.setCaption("id");
        //regionalId.setInfo("regional id");
        unitTypeId.setListProperties(" align=\"left\" width=\"1%\" nowrap");
        unitTypeId.setInputProperties(" size=\"20\"");
        getFields().add(unitTypeId);
        
      
        unitTypeName = new Field();
        unitTypeName.setName("unitTypeName");
        unitTypeName.setCaption("name");
        //regionalName.setInfo("regional name");
        unitTypeName.setListProperties(" align=\"left\" width=\"60%\" nowrap");
        unitTypeName.setInputProperties(" size=\"30\"");
        unitTypeName.setRequired(true);
        getFields().add(unitTypeName);

        

        fillFields();
        setExportList(getClass().getResourceAsStream("RegionalList.jasper"));
        setExport(getClass().getResourceAsStream("Regional.jasper"));

        getFieldsAdd().remove(unitTypeId);
        getFieldsEdit().remove(unitTypeId);
        getFieldsList().remove(unitTypeId);
        getFieldsView().remove(unitTypeId);
    }
}
